#include "pistolet.h"

void Pistolet::miseAJour(){
    portee= 2 +(niveau/2.0);
    cadence=(4-(niveau/2.0));
    force=5*(pow(niveau,1.5));
    cercle.setRect((-portee*(600.0/16)+600/32),(-portee*(600.0/16)+600/32),(2.0*portee*(600.0/16)),(2*portee*(600.0/16)));
    forceinit = 5*(pow(niveau,1.5));
}
int Pistolet::ameliorer(int credit){
    int i = Defense::ameliorer(credit);
    if (i!=0){
        miseAJour();
    }
    return i;
}
